

            
// This code is a generated code by a tool
// designed and coded by Shohdi Mohamed Elsheemy ( shohdi@gmail.com )

            
using System;
using System.Collections.Generic;
using System.Web;
namespace DatabaseComponent
{
[Serializable]
public partial class Persons
{
System.Int64 _GenID =-1;
public System.Int64 GenID
{
get { return _GenID;}
set { _GenID = value;}
}
System.String _Name_AR ="";
public System.String Name_AR
{
get { return _Name_AR;}
set { _Name_AR = value;}
}
System.String _Name_EN ="";
public System.String Name_EN
{
get { return _Name_EN;}
set { _Name_EN = value;}
}
System.String _MiddleName_AR ="";
public System.String MiddleName_AR
{
get { return _MiddleName_AR;}
set { _MiddleName_AR = value;}
}
System.String _MiddleName_EN ="";
public System.String MiddleName_EN
{
get { return _MiddleName_EN;}
set { _MiddleName_EN = value;}
}
System.String _FamilyName_AR ="";
public System.String FamilyName_AR
{
get { return _FamilyName_AR;}
set { _FamilyName_AR = value;}
}
System.String _FamilyName_EN ="";
public System.String FamilyName_EN
{
get { return _FamilyName_EN;}
set { _FamilyName_EN = value;}
}
System.Boolean _Gender =false;
public System.Boolean Gender
{
get { return _Gender;}
set { _Gender = value;}
}
System.String _Badge ="";
public System.String Badge
{
get { return _Badge;}
set { _Badge = value;}
}
System.String _ID ="";
public System.String ID
{
get { return _ID;}
set { _ID = value;}
}
System.DateTime? _BirthDate =null;
public System.DateTime? BirthDate
{
get { return _BirthDate;}
set { _BirthDate = value;}
}
System.Int64? _RelationID =null;
public System.Int64? RelationID
{
get { return _RelationID;}
set { _RelationID = value;}
}
System.Int64? _NationalityID =null;
public System.Int64? NationalityID
{
get { return _NationalityID;}
set { _NationalityID = value;}
}
System.Int64? _OperationAreaID =null;
public System.Int64? OperationAreaID
{
get { return _OperationAreaID;}
set { _OperationAreaID = value;}
}
System.Int64? _PersonTypeID =null;
public System.Int64? PersonTypeID
{
get { return _PersonTypeID;}
set { _PersonTypeID = value;}
}
System.String _ChargeAccount ="";
public System.String ChargeAccount
{
get { return _ChargeAccount;}
set { _ChargeAccount = value;}
}
System.Int64? _OrgChartID =null;
public System.Int64? OrgChartID
{
get { return _OrgChartID;}
set { _OrgChartID = value;}
}
System.String _Email ="";
public System.String Email
{
get { return _Email;}
set { _Email = value;}
}
System.String _Password ="";
public System.String Password
{
get { return _Password;}
set { _Password = value;}
}
System.Int64 _UserTypeID =-1;
public System.Int64 UserTypeID
{
get { return _UserTypeID;}
set { _UserTypeID = value;}
}
System.String _Mobile1 ="";
public System.String Mobile1
{
get { return _Mobile1;}
set { _Mobile1 = value;}
}
System.String _Mobile2 ="";
public System.String Mobile2
{
get { return _Mobile2;}
set { _Mobile2 = value;}
}
System.String _Phone1 ="";
public System.String Phone1
{
get { return _Phone1;}
set { _Phone1 = value;}
}
System.String _InnerPhone1 ="";
public System.String InnerPhone1
{
get { return _InnerPhone1;}
set { _InnerPhone1 = value;}
}
System.String _Phone2 ="";
public System.String Phone2
{
get { return _Phone2;}
set { _Phone2 = value;}
}
System.String _InnerPhone2 ="";
public System.String InnerPhone2
{
get { return _InnerPhone2;}
set { _InnerPhone2 = value;}
}
System.Int64? _Language =null;
public System.Int64? Language
{
get { return _Language;}
set { _Language = value;}
}
System.Int64 _StatusID =-1;
public System.Int64 StatusID
{
get { return _StatusID;}
set { _StatusID = value;}
}
System.Int64? _EmploymentStatus =null;
public System.Int64? EmploymentStatus
{
get { return _EmploymentStatus;}
set { _EmploymentStatus = value;}
}
System.Int64 _EducationLevel =-1;
public System.Int64 EducationLevel
{
get { return _EducationLevel;}
set { _EducationLevel = value;}
}
System.String _PositionEmail ="";
public System.String PositionEmail
{
get { return _PositionEmail;}
set { _PositionEmail = value;}
}
System.String _OfficePhone ="";
public System.String OfficePhone
{
get { return _OfficePhone;}
set { _OfficePhone = value;}
}
System.String _OfficeInnerPhone ="";
public System.String OfficeInnerPhone
{
get { return _OfficeInnerPhone;}
set { _OfficeInnerPhone = value;}
}
public Persons()
{
}
public Persons(System.String __Name_AR,System.String __Name_EN,System.String __MiddleName_AR,System.String __MiddleName_EN,System.String __FamilyName_AR,System.String __FamilyName_EN,System.Boolean __Gender,System.String __Badge,System.String __ID,System.DateTime? __BirthDate,System.Int64? __RelationID,System.Int64? __NationalityID,System.Int64? __OperationAreaID,System.Int64? __PersonTypeID,System.String __ChargeAccount,System.Int64? __OrgChartID,System.String __Email,System.String __Password,System.Int64 __UserTypeID,System.String __Mobile1,System.String __Mobile2,System.String __Phone1,System.String __InnerPhone1,System.String __Phone2,System.String __InnerPhone2,System.Int64? __Language,System.Int64 __StatusID,System.Int64? __EmploymentStatus,System.Int64 __EducationLevel,System.String __PositionEmail,System.String __OfficePhone,System.String __OfficeInnerPhone)
{
_Name_AR = __Name_AR;
_Name_EN = __Name_EN;
_MiddleName_AR = __MiddleName_AR;
_MiddleName_EN = __MiddleName_EN;
_FamilyName_AR = __FamilyName_AR;
_FamilyName_EN = __FamilyName_EN;
_Gender = __Gender;
_Badge = __Badge;
_ID = __ID;
_BirthDate = __BirthDate;
_RelationID = __RelationID;
_NationalityID = __NationalityID;
_OperationAreaID = __OperationAreaID;
_PersonTypeID = __PersonTypeID;
_ChargeAccount = __ChargeAccount;
_OrgChartID = __OrgChartID;
_Email = __Email;
_Password = __Password;
_UserTypeID = __UserTypeID;
_Mobile1 = __Mobile1;
_Mobile2 = __Mobile2;
_Phone1 = __Phone1;
_InnerPhone1 = __InnerPhone1;
_Phone2 = __Phone2;
_InnerPhone2 = __InnerPhone2;
_Language = __Language;
_StatusID = __StatusID;
_EmploymentStatus = __EmploymentStatus;
_EducationLevel = __EducationLevel;
_PositionEmail = __PositionEmail;
_OfficePhone = __OfficePhone;
_OfficeInnerPhone = __OfficeInnerPhone;
}
public Persons(System.Int64 __GenID,System.String __Name_AR,System.String __Name_EN,System.String __MiddleName_AR,System.String __MiddleName_EN,System.String __FamilyName_AR,System.String __FamilyName_EN,System.Boolean __Gender,System.String __Badge,System.String __ID,System.DateTime? __BirthDate,System.Int64? __RelationID,System.Int64? __NationalityID,System.Int64? __OperationAreaID,System.Int64? __PersonTypeID,System.String __ChargeAccount,System.Int64? __OrgChartID,System.String __Email,System.String __Password,System.Int64 __UserTypeID,System.String __Mobile1,System.String __Mobile2,System.String __Phone1,System.String __InnerPhone1,System.String __Phone2,System.String __InnerPhone2,System.Int64? __Language,System.Int64 __StatusID,System.Int64? __EmploymentStatus,System.Int64 __EducationLevel,System.String __PositionEmail,System.String __OfficePhone,System.String __OfficeInnerPhone)
{
_GenID = __GenID;
_Name_AR = __Name_AR;
_Name_EN = __Name_EN;
_MiddleName_AR = __MiddleName_AR;
_MiddleName_EN = __MiddleName_EN;
_FamilyName_AR = __FamilyName_AR;
_FamilyName_EN = __FamilyName_EN;
_Gender = __Gender;
_Badge = __Badge;
_ID = __ID;
_BirthDate = __BirthDate;
_RelationID = __RelationID;
_NationalityID = __NationalityID;
_OperationAreaID = __OperationAreaID;
_PersonTypeID = __PersonTypeID;
_ChargeAccount = __ChargeAccount;
_OrgChartID = __OrgChartID;
_Email = __Email;
_Password = __Password;
_UserTypeID = __UserTypeID;
_Mobile1 = __Mobile1;
_Mobile2 = __Mobile2;
_Phone1 = __Phone1;
_InnerPhone1 = __InnerPhone1;
_Phone2 = __Phone2;
_InnerPhone2 = __InnerPhone2;
_Language = __Language;
_StatusID = __StatusID;
_EmploymentStatus = __EmploymentStatus;
_EducationLevel = __EducationLevel;
_PositionEmail = __PositionEmail;
_OfficePhone = __OfficePhone;
_OfficeInnerPhone = __OfficeInnerPhone;
}


             public override bool Equals(object obj)
         {
             if (obj is Persons)
             {
                 Persons newObj = (Persons)obj;

                 if (newObj.GenID == this.GenID )
                 {
                     return true;
                 }
                 else
                 {
                     return false;
                 }
             }

             else
             {
                 return false;
             }

            
         }            











             }
}
